/* SimpleWebView.h - An Web browser using UIWebView.
 *
 * Copyright (C) 2008 Yuuichi Teranishi
 *
 * Original code was found at iphonedev BBS.
 *
 * This file is derived from Stumbler, a program developed by iphone-wireless
 * project.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2
 * published by the Free Software Foundation.

 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with this program; If not, write to the Free Software Foundation,
 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */
#import <UIKit/UIKit.h>
#import <UIKit/UIScroller.h>
#import <UIKit/UIWebView.h>
#import <UIKit/UIProgressHUD.h>

@interface SimpleWebView : UIView {
  UIWebView *webView;
  UIScroller *scroller;
  UIAlertSheet *mProgress;
  NSURL *currentUrl;
  BOOL loaded;
  id webDelegate;
  id _tapDelegate;
  float lastX;
  float lastY;

  BOOL scroll;

  float w;
  float h;

  CGSize _imagesize;
  float	_fDistancePrev;
  bool _bZooming;
  float	_imagezoom;
  CGSize _oimagesize;

  UIPushButton *det;
  UIPushButton *cv;
  UIPushButton *zin;
  UIPushButton *zout;
  UIPushButton *cpos;

}
-(void)loadHTML: (NSString *)html;
-(void)loadURL: (NSURL *)url;
-(BOOL)loaded;
-(void)dealloc;
-(void)execJavaScript:(NSString *)script;
-(id)initWithFrame: (CGRect)frame webDelegate: (id) delegate withSmoothScroll:(BOOL) flag;
@end
